<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    
</body>
<script>
    var a = {
        name:'谁',
        ww(o){
            console.log('是'+this.name +'住在'+o);
        }
    }
    var b ={
        name:'b',
        ww(o){
            console.log('是'+this.name +'住在'+o);
        }
    }
    a.ww('大菠萝里')
    a.ww.apply(b,['深海的大菠萝里'])
</script>
</html>